package cn.kgc.spring.day0402.service.impl;

import cn.kgc.spring.day0402.annotations.Time;
import cn.kgc.spring.day0402.service.TeacherService;
import org.springframework.stereotype.Service;

/**
 * @author 课工场
 * @date 2024/11/7
 * @description
 */
@Service
public class TeacherServiceImpl implements TeacherService {


    @Time
    @Override
    public String teachOnLine(String course, String account) {

        System.out.println(course+"课程正在讲解中,会议号:"+account);

        // int a = 1/0;
        return course+":"+account;
    }


    @Time
    @Override
    public String teachOffLine(String course, Integer classRoom) {

        System.out.println(course+"课程正在讲解中,在第"+classRoom+"教室");

        return course+":"+classRoom;
    }
}
